package com.g9.blog.repository;

import com.g9.blog.entity.Admin;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Auther: Graycat
 * @Date: 2020/9/15 14:48
 * Create by lwj.
 */
public interface AdminRepository extends JpaRepository<Admin,Integer> {

    Admin findById(int id);

    Admin findByUsername(String username);

}
